﻿using Newtonsoft.Json;

namespace AutomationCommand
{
    public class wb_data_delete : BasiCommand
    {
        [JsonProperty("path")]
        public string Path { get; set; }

        [JsonProperty("tablename")]
        public string TableName { get; set; }

        [JsonProperty("keyname")]
        public string KeyName { get; set; }

        [JsonProperty("relational")]
        public string Relational { get; set; }

        [JsonProperty("key_json_inputdata")]
        public string KeyJsonInputData { get; set; }

        public wb_data_delete()
        {
            FunctionType = "wb_data_delete";
            OtherName = "数据库记录删除";
            SuccessJump = -1;
            FailureJump = -1;
            Path = "";
            TableName = "";
            KeyName = "";
            Relational = "";
            KeyJsonInputData = "";
        }

        public  bool Execute()
        {
            // 在这里编写执行命令的逻辑
            // 返回执行结果
            return true; // 假设此处始终成功
        }
    }
}
